package com.car.sale.service;

import com.car.sale.entity.News;
import com.car.sale.mapper.NewsMapper;
import com.car.sale.vo.Link;
import com.car.sale.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NewsService {
    @Autowired
    private NewsMapper newsMapper;
    public Result getTodayNews()
    {
        List<Link> list = newsMapper.getNews();
        return Result.success(list);
    }
}
